package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 课程数据
 * </p>
 *
 * @author yangyongchuan
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SubjectData extends Model<SubjectData> {

	private static final long serialVersionUID = 1L;

	/**
	 * 课程ID
	 */
	private Integer subjectId;

	/**
	 * 观看次数
	 */
	private Integer viewNum = 0;

	/**
	 * 点赞次数
	 */
	private Integer likeNum = 0;

	/**
	 * 收藏数
	 */
	private Integer collectNum = 0;


	@Override
	protected Serializable pkVal() {
		return this.subjectId;
	}

}
